Add gdk_profiler_add_markf() to do printf formating
authorAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 08:56:10 +0000 (09:56 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 08:58:52 +0000 (09:58 +0100)
commit6de85c0a68ac3a3bae21c780559de74e671419ae
treece224d833f670cf4de497a1877359efd423a8a27
parentc2dcd1bf941dfa4f4269239eff67207d978a7a76
Add gdk_profiler_add_markf() to do printf formating

This allows us to avoid hand-rolling g_strdup_printf calls,
but also moves the printf into the called function where
it doesn't bloat the code of the calling function if the profiler
is not running.
gdk/gdkprofiler.c
gdk/gdkprofilerprivate.h